import React from 'react'
import ReactDOM from 'react-dom/client'
import {BrowserRouter as Router} from "react-router-dom";
import {Provider} from "react-redux"
import {store,persistor} from "@/store"
import { PersistGate } from 'redux-persist/lib/integration/react';
import './index.css'
import App from './App'

const rootApp = ReactDOM.createRoot(document.getElementById('root'))
rootApp.render(
    <Provider store={store}>
        <PersistGate loading={null} persistor={persistor}>
            <Router>
                {/*<React.StrictMode>*/}
                <App />
                {/*</React.StrictMode>*/}
            </Router>
        </PersistGate>
    </Provider>
)


